﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GetQuote.Master" AutoEventWireup="true" CodeBehind="CalculatorDrapery.aspx.cs" Inherits="GetQuote.Web.CalculatorDrapery" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v12.1, Version=12.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v12.1, Version=12.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<h3>RT, RTB and Pleated Drapes Order Form</h3>
    <div class="well" style="width:920px" id="drapery-form">
        <table cellpadding="4" >
            <tr>
                <td style="width:145px;">Room Location</td>
                <td> <select class="original">
                    <option value="0">Select location</option>
	                <option value="1">Bath</option>
	                <option value="2">Bed</option>
	                <option value="3">Family</option>
	                <option value="4">Dining</option>
	                <option value="5">Home Offices</option>
	                <option value="6">Kitchens</option>
	                <option value="7">Living</option>
	                <option value="9">M. Bath</option>
	                <option value="10">Breakfast</option>
	                <option value="11">Sink</option>
	                <option value="12">M.Bed</option>
	                <option value="13">F.Bed</option>
	                <option value="14">B.Bed</option>
	                <option value="15">C.Bed</option>
	                <option value="17">Bed #1</option>
	                <option value="18">Bed #2</option>
                </select> </td>
                <td style=" width:20px;"></td>
                <td style="width:145px;">Quantity</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
                <td style=" width:20px;"></td>
                <td style="width:150px;">Pair or Panel</td>
                <td><select class="original">
                    <option>Pair</option>
                    <option>Panel Left</option>
                    <option>Panel Right</option>
                </select></td>
            </tr>
            <tr>
                <td>BR to BR</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
                <td></td>
                <td>Return</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
                <td ></td>
                <td>Overlap</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
            </tr>
            <tr>
                <td>Fabric Width</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
                <td></td>
                <td>Fullness</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
                <td></td>
                <td>No. of Width per Panel</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
            </tr>
            <tr>
                <td>Finished Length</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
                <td></td>
                <td>Repeat Pattern</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
                <td></td>
                <td>Fabric Price</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
            </tr>
            <tr>
                <td>Lining Price</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
                <td></td>
                <td>Price per Width</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
                <td></td>
                <td>Hardware</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
            </tr>
            <tr>
                <td>Tie Back</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
                <td></td>
                <td>Accessories</td>
                <td><input type="text" class="clear-margin-bottom" /></td>
                <td></td>
                <td></td>
                <td class="text-left"><input type="button" value="Add" class="btn btn-primary" /></td>
            </tr>
        </table>
    </div>
    
    <dx:ASPxGridView ID="gridProduct" runat="server"  Width="99%" Theme="Office2010Silver" DataSourceID="DraperyDataSource">
        <Columns>
            <dx:GridViewDataColumn FieldName="Id" VisibleIndex="1" Settings-AllowSort="False" Caption="" Width="90px"  FixedStyle="Left">
                <HeaderTemplate></HeaderTemplate>
                <DataItemTemplate>
                    <a href="#">Edit</a> | 
                    <a href="#" onclick="confirm('Do you really want to delete this price?'); return false;">Delete</a>
                </DataItemTemplate>
            </dx:GridViewDataColumn>
            <dx:GridViewDataColumn FieldName="RoomLocation" VisibleIndex="3" />
            <dx:GridViewDataColumn FieldName="Quantity" VisibleIndex="4" Width="70px" />
            <dx:GridViewDataColumn FieldName="PairOrPanel" VisibleIndex="5" Width="100px"/>
            <dx:GridViewDataColumn FieldName="BRToBR" VisibleIndex="6" Width="75px"/>
            <dx:GridViewDataColumn FieldName="Return" VisibleIndex="7" Width="60px" />
            <dx:GridViewDataColumn FieldName="Overlap" VisibleIndex="8" Width="70px" />
            <dx:GridViewDataColumn FieldName="FinishedWidth" VisibleIndex="9" />
            <dx:GridViewDataColumn FieldName="FabricWidth" VisibleIndex="10" />
            <dx:GridViewDataColumn FieldName="Fullness" VisibleIndex="11" />
            <dx:GridViewDataColumn FieldName="NoOfWidthPerPanel" VisibleIndex="12" />
            <dx:GridViewDataColumn FieldName="FinishedLength" VisibleIndex="13" />
            <dx:GridViewDataColumn FieldName="RepeatPattern" VisibleIndex="14" />
            <dx:GridViewDataColumn FieldName="NumOfRepeat" VisibleIndex="15" />
            <dx:GridViewDataColumn FieldName="CutLength" VisibleIndex="16" />
            <dx:GridViewDataColumn FieldName="FabricYardage" VisibleIndex="17" />
            <dx:GridViewDataColumn FieldName="LiningYardage" VisibleIndex="18" />
            <dx:GridViewDataColumn FieldName="FabricPrice" VisibleIndex="19" />
            <dx:GridViewDataColumn FieldName="LiningPrice" VisibleIndex="20" />
            <dx:GridViewDataColumn FieldName="TotalFabric" VisibleIndex="21" />
            <dx:GridViewDataColumn FieldName="TotalLining" VisibleIndex="22" />
            <dx:GridViewBandColumn Caption="Labor Cost" VisibleIndex="23" HeaderStyle-HorizontalAlign="Center">
                <Columns>
                    <dx:GridViewDataTextColumn FieldName="PricePerWidth" />
                    <dx:GridViewDataTextColumn FieldName="TotalLaborCost" Caption="Total" HeaderStyle-HorizontalAlign="Center"/>
                </Columns>
            </dx:GridViewBandColumn>
            <dx:GridViewDataColumn FieldName="Hardware" VisibleIndex="24" />
            <dx:GridViewDataColumn FieldName="TieBack" VisibleIndex="25" />
            <dx:GridViewDataColumn FieldName="Accessories" VisibleIndex="26" />
             <dx:GridViewDataTextColumn  FieldName="Total" VisibleIndex="27">
                <PropertiesTextEdit DisplayFormatString="c" />
            </dx:GridViewDataTextColumn >
        </Columns>
        <SettingsBehavior ColumnResizeMode="NextColumn"/>
        <Settings ShowHorizontalScrollBar="True" ShowFooter="True" />
        <TotalSummary>
            <dx:ASPxSummaryItem FieldName="Total" SummaryType="Sum" />
        </TotalSummary>
    </dx:ASPxGridView>
    <asp:LinqDataSource ID="DraperyDataSource" runat="server" 
        onselecting="DraperyDataSource_Selecting">
    </asp:LinqDataSource>
</asp:Content>
